Systems and Methods of Object Shape and Position Determination in Three-Dimensional (3D) Space

ABSTRACT

Methods and systems for capturing motion and/or determining the shapes and positions of one or more objects in 3D space utilize cross-sections thereof. In various embodiments, images of the cross-sections are captured using a camera based on edge points thereof.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 14/106,140 filed Dec. 13, 2013, entitled “SYSTEMS AND METHODS FOR CAPTURING MOTION IN THREE-DIMENSIONAL SPACE” (Attorney Docket No. LEAP 1006-9/LPM-001CP2C1/7312203003), which is a continuation of U.S. patent application Ser. No. 13/742,953 filed Jan. 16, 2013 (now U.S. Pat. No. 8,638,989 issued Jan. 28, 2014), entitled “SYSTEMS AND METHODS FOR CAPTURING MOTION IN THREE-DIMENSIONAL SPACE” (Attorney Docket No. LEAP 1006-8/LPM-001CP2/7312204002), which is a continuation-in-part of U.S. patent application Ser. No. 13/414,485 filed Mar. 7, 2012, entitled “MOTION CAPTURE USING CROSS-SECTIONS OF AN OBJECT” (Attorney Docket No. LEAP 1006-7/LPM-1006US), and Ser. No. 13/724,357 filed Dec. 21, 2012, entitled “SYSTEMS AND METHODS FOR CAPTURING MOTION IN THREE-DIMENSIONAL SPACE” (Attorney Docket No. LEAP 1006-3/LPM-001CP), and also claims priority to and the benefit of U.S. Provisional Patent Application Nos. 61/724,091 filed Nov. 8, 2012, entitled “SYSTEMS AND METHODS FOR CAPTURING MOTION IN THREE-DIMENSIONAL SPACE” (Attorney Docket No. LPM-001PR2/7312201010), and 61/587,554 filed Jan. 17, 2012, entitled “METHODS AND SYSTEMS FOR IDENTIFYING POSITION AND SHAPE OF OBJECTS IN THREE-DIMENSIONAL SPACE” (Attorney Docket No. PA5663PRV).

This application is related to U.S. patent application entitled “SYSTEMS AND METHODS OF CONSTRUCTING THREE-DIMENSIONAL (3D) MODEL OF AN OBJECT USING IMAGE CROSS-SECTIONS” (Attorney Docket No. LEAP 1006-11/LPM-001CP2C3) filed contemporaneously. The related application is incorporated by reference in this application.

FIELD OF THE INVENTION

The present invention relates, in general, to image analysis, and in particular embodiments to identifying shapes and capturing motions of objects in three-dimensional space.

BACKGROUND

Motion capture has numerous applications. For example, in filmmaking, digital models generated using motion capture can be used as the basis for the motion of computer-generated characters or objects. In sports, motion capture can be used by coaches to study an athlete's movements and guide the athlete toward improved body mechanics. In video games or virtual reality applications, motion capture can be used to allow a person to interact with a virtual environment in a natural way, e.g., by waving to a character, pointing at an object, or performing an action such as swinging a golf club or baseball bat.

The term “motion capture” refers generally to processes that capture movement of a subject in three-dimensional (3D) space and translate that movement into, for example, a digital model or other representation. Motion capture is typically used with complex subjects that have multiple separately articulating members whose spatial relationships change as the subject moves. For instance, if the subject is a walking person, not only does the whole body move across space, but the position of arms and legs relative to the person's core or trunk are constantly shifting. Motion capture systems are typically interested in modeling this articulation.

Most existing motion capture systems rely on markers or sensors worn by the subject while executing the motion and/or on the strategic placement of numerous cameras in the environment to capture images of the moving subject from different angles. Such systems tend to be expensive to construct. In addition, markers or sensors worn by the subject can be cumbersome and interfere with the subject's natural movement. Further, systems involving large numbers of cameras tend not to operate in real time, due to the volume of data that needs to be analyzed and correlated. Such considerations of cost, complexity and convenience have limited the deployment and use of motion capture technology.

Consequently, there is a need for an economical approach that captures the motion of objects in real time without attaching sensors or markers thereto.

SUMMARY

Embodiments of the present invention relate to methods and systems for capturing motion and/or determining the shapes and positions of one or more objects in 3D space using at least one cross-section thereof; the cross-section(s) may be obtained from, for example, reflections from the object or shadows cast by the object. In various embodiments, the 3D reflections or shadows captured using a camera are first sliced into multiple two-dimensional (2D) cross-sectional images. The cross-sectional positions and sizes of the 3D objects in each 2D slice may be determined based on the positions of one or more light sources used to illuminate the objects and the captured reflections or shadows. The 3D structure of the object may then be reconstructed by assembling a plurality of the cross-section regions obtained in the 2D slices. The objective, in general, is to obtain either a unique ellipse describing the cross-section of the object, or a subset of the parameters defining the cross-section (in which case the remaining parameters may be estimated). If there are more light sources than are necessary to determine the shape of the cross-section, some optimized subset of them may be utilized for maximum accuracy. The light sources may emit at different wavelengths so that their individual contributions are more easily identified, or they may be turned on in sequence rather than simultaneously, or they may have different brightnesses.

In some embodiments, the 2D cross-section regions are identified based on a vantage point defined by the position of an image-capturing camera and shadow edge points generated by light sources. At the vantage point, two light rays are detected; these light rays are transmitted from a left-edge tangent point and a right-edge tangent point of the cross-section, and define a viewed portion of the cross-section within the field of view of the camera. Two equations based on the positions of the two edge tangent points can partially determine the characteristic parameters of a closed curve (e.g., an ellipse) approximating the contour of the object's cross-section. Additionally, each shadow edge point created by emitting light from a light source onto the cross-section can provide two equations, one based on the detected position of the shadow edge point and the other based on the light ray emitted from the light source to the shadow edge point on the cross-section. Utilizing a suitable number (e.g., one or a plurality) of light sources can provide sufficient information to determine the characteristic parameters of the fitting ellipse, thereby identifying the position and size of the cross-section. Accordingly, a 3D model of the object can be reconstructed by correlating the determined positions and sizes of the cross-sections in the 2D slices. A succession of images can then be analyzed using the same technique to model motion of the object.

Accordingly, in a first aspect, the invention pertains to a method of identifying a position and shape of an object in 3D space. In various embodiments, the method comprises using a single camera to capture an image generated by casting an output from at least one source onto the object; analyzing the image to computationally slice the object into a plurality of 2D slices, each of which corresponds to a cross-section of the object, based at least in part on multiple edge points in the image (where an edge point may be, e.g., an illuminated edge point—i.e., a point on the edge of the object that is detectable by the camera—or a shadow edge point at the boundary of a shadow region, as more fully described below); and reconstructing the position and shape of at least a portion of the object in 3D space based at least in part on a plurality of the identified cross-sectional positions and sizes. The source(s) may be one or more light sources—e.g., one, two, three, or more than three light-emitting diodes (LEDs). A plurality of light sources may be operated in a pulsed fashion, whereby a plurality of the edge points are generated sequentially.

In some embodiments, the edge points define a viewed portion of the cross-section within which the portion of the cross-section is within a field of view of an image-capturing device (e.g., a camera). Light rays cast from the edge points to the image-capturing device may be tangent to the cross-section, and at least one shadow edge point may be created by emitting light from the source(s) onto the object. The shadow edge point(s) may be defined by a boundary between a shadow region and an illuminated region on the cross-section of the object.

The method may further comprise defining a 3D model of the object and reconstructing the position and shape of the object in 3D space based on the 3D model. The position and shape of the object in 3D space may be reconstructed based on correlations between the plurality of the 2D slices.

In another aspect, the invention pertains to a system for identifying a position and shape of an object in 3D space. In various embodiments, the system comprises a camera oriented toward a field of view; at least one source to direct illumination onto the object in the field of view; and an image analyzer coupled to the camera and the source(s). The image analyzer is configured to capture an image generated by casting an output from at least one source onto the object analyze the image to computationally slice the object into a plurality of two-dimensional 2D slices, each of which corresponds to a cross-section of the object, based at least in part on edge points in the image; and reconstruct the position and shape of at least a portion of the object in 3D space based at least in part on a plurality of the identified cross-sectional positions and sizes. The source(s) may be a plurality of light sources, e.g., one, two, three or more LEDs. The system may include a driver for operating the sources in a pulsed fashion, whereby a plurality of the shadow edge points are generated sequentially. In some embodiments, the image analyzer is further configured to define a 3D model of the object and reconstruct the position and shape of the object in 3D space based on the 3D model.

Reference throughout this specification to “one example,” “an example,” “one embodiment,” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the example is included in at least one example of the present technology. Thus, the occurrences of the phrases “in one example,” “in an example,” “one embodiment,” or “an embodiment” in various places throughout this specification are not necessarily all referring to the same example. Furthermore, the particular features, structures, routines, steps, or characteristics may be combined in any suitable manner in one or more examples of the technology. The headings provided herein are for convenience only and are not intended to limit or interpret the scope or meaning of the claimed technology.

BRIEF DESCRIPTION OF THE DRAWINGS

In the drawings, like reference characters generally refer to the same parts throughout the different views. Also, the drawings are not necessarily to scale, with an emphasis instead generally being placed upon illustrating the principles of the invention. In the following description, various embodiments of the present invention are described with reference to the following drawings, in which:

FIG. 1 is a simplified illustration of a motion capture system according to an embodiment of the present invention;

FIG. 2 is a simplified block diagram of a computer system that can be used according to an embodiment of the present invention;

FIGS. 3A (top view) and 3B (side view) are conceptual illustrations of how slices are defined in a field of view according to an embodiment of the present invention;

FIGS. 4A-4C are top views illustrating an analysis that can be performed on a given slice according to an embodiment of the present invention. FIG. 4A is a top view of a slice. FIG. 4B illustrates projecting edge points from an image plane to a vantage point to define tangent lines. FIG. 4C illustrates fitting an ellipse to tangent lines as defined in FIG. 4B;

FIG. 5 graphically illustrates an ellipse in the xy plane characterized by five parameters;

FIGS. 6A and 6B provide a flow diagram of a motion-capture process according to an embodiment of the present invention;

FIG. 7 graphically illustrates a family of ellipses that can be constructed from four tangent lines;

FIG. 8 sets forth a general equation for an ellipse in the xy plane;

FIG. 9 graphically illustrates how a centerline can be found for an intersection region with four tangent lines according to an embodiment of the present invention;

FIGS. 10A-10N set forth equations that can be solved to fit an ellipse to four tangent 15 lines according to an embodiment of the present invention;

FIGS. 11A-11C are top views illustrating instances of slices containing multiple disjoint cross-sections according to various embodiments of the present invention;

FIG. 12 graphically illustrates a model of a hand that can be generated using a motion capture system according to an embodiment of the present invention;

FIG. 13 is a simplified system diagram for a motion-capture system with three cameras according to an embodiment of the present invention;

FIG. 14 illustrates a cross-section of an object as seen from three vantage points in the system of FIG. 13;

FIG. 15 graphically illustrates a technique that can be used to find an ellipse from at least five tangents according to an embodiment of the present invention;

FIGS. 16A, 16B, and 16C are simplified illustrations of a motion-capture system in accordance with an embodiment of the present invention;

FIG. 17 schematically illustrates a system for capturing shadows of an object according to an embodiment of the present invention;

FIG. 18 schematically illustrates an ambiguity that can occur in the system of FIG. 17;

FIG. 19 schematically illustrates another system for capturing shadows of an object according to another embodiment of the present invention;

FIG. 20 graphically depicts a collection of the intersection regions defined by a virtual rubber band stretched around multiple intersection regions in accordance with an embodiment of the invention;

FIG. 21 schematically illustrates a simple intersection region constructed using two light sources in accordance with an embodiment of the invention;

FIGS. 22A, 22B and 22C schematically depict determinations of true intersection points in accordance with various embodiments of the invention;

FIG. 23 schematically depicts an intersection region uniquely identified using a group of the intersection points;

FIG. 24 illustrates an image coordinate system incorporated to define the locations of the shadows in accordance with an embodiment of the invention;

FIG. 25A illustrates separate color images captured using color filters in accordance with an embodiment of the invention;

FIG. 25B depicts a reconstructed 3D image of the object;

FIGS. 26A, 26B, and 26C schematically illustrate a system for capturing an image of both the object and one or more shadows cast by the object from one or more light sources at known positions according to an embodiment of the present invention;

FIG. 27 schematically illustrates a camera-and-beamsplitter setup for a motion capture system according to another embodiment of the present invention;

FIG. 28 schematically illustrates a camera-and-pinhole setup for a motion capture system according to another embodiment of the present invention; and

FIGS. 29A, 29B, and 29C depict a motion capture system operatively connected to a head-mounted device, a mobile device, and an authentication server, respectively.

DETAILED DESCRIPTION

Embodiments of the present invention relate to methods and systems for capturing motion and/or determining position of an object using small amounts of information. For example, an outline of an object's shape, or silhouette, as seen from a particular vantage point can be used to define tangent lines to the object from that vantage point in various planes, referred to herein as “slices.” Using as few as two different vantage points, four (or more) tangent lines from the vantage points to the object can be obtained in a given slice. From these four (or more) tangent lines, it is possible to determine the position of the object in the slice and to approximate its cross-section in the slice, e.g., using one or more ellipses or other simple closed curves. As another example, locations of points on an object's surface in a particular slice can be determined directly (e.g., using a time-of-flight camera), and the position and shape of a cross-section of the object in the slice can be approximated by fitting an ellipse or other simple closed curve to the points. Positions and cross-sections determined for different slices can be correlated to construct a 3D model of the object, including its position and shape. A succession of images can be analyzed using the same technique to model motion of the object. Motion of a complex object that has multiple separately articulating members (e.g., a human hand) can be modeled using techniques described herein.

In some embodiments, the silhouettes of an object are extracted from one or more images of the object that reveal information about the object as seen from different vantage points. While silhouettes can be obtained using a number of different techniques, in some embodiments, the silhouettes are obtained by using cameras to capture images of the object and analyzing the images to detect object edges.

FIG. 1 is a simplified illustration of a motion capture system 100 according to an embodiment of the present invention. System 100 includes two cameras 102, 104 arranged such that their fields of view (indicated by broken lines) overlap in region 110. Cameras 102 and 104 are coupled to provide image data to a computer 106. Computer 106 analyzes the image data to determine the 3D position and motion of an object, e.g., a hand 108, that moves in the field of view of cameras 102, 104.

Cameras 102, 104 can be any type of camera, including visible-light cameras, infrared (IR) cameras, ultraviolet cameras or any other devices (or combination of devices) that are capable of capturing an image of an object and representing that image in the form of digital data. Cameras 102, 104 are preferably capable of capturing video images (i.e., successive image frames at a constant rate of at least 15 frames per second), although no particular frame rate is required. The particular capabilities of cameras 102, 104 are not critical to the invention, and the cameras can vary as to frame rate, image resolution (e.g., pixels per image), color or intensity resolution (e.g., number of bits of intensity data per pixel), focal length of lenses, depth of field, etc. In general, for a particular application, any cameras capable of focusing on objects within a spatial volume of interest can be used. For instance, to capture motion of the hand of an otherwise stationary person, the volume of interest might be a meter on a side. To capture motion of a running person, the volume of interest might be tens of meters in order to observe several strides (or the person might run on a treadmill, in which case the volume of interest can be considerably smaller).

The cameras can be oriented in any convenient manner. In the embodiment shown, respective optical axes 112, 114 of cameras 102 and 104 are parallel, but this is not required. As described below, each camera is used to define a “vantage point” from which the object is seen, and it is required only that a location and view direction associated with each vantage point be known, so that the locus of points in space that project onto a particular position in the camera's image plane can be determined. In some embodiments, motion capture is reliable only for objects in area 110 (where the fields of view of cameras 102, 104 overlap), and cameras 102, 104 may be arranged to provide overlapping fields of view throughout the area where motion of interest is expected to occur.

In FIG. 1 and other examples described herein, object 108 is depicted as a hand. The hand is used only for purposes of illustration, and it is to be understood that any other object can be the subject of motion capture analysis as described herein. Computer 106 can be any device that is capable of processing image data using techniques described herein. FIG. 2 is a simplified block diagram of computer system 200 implementing computer 106 according to an embodiment of the present invention. Computer system 200 includes a processor 202, a memory 204, a camera interface 206, a display 208, speakers 209, a keyboard 210, and a mouse 211.

Processor 202 can be of generally conventional design and can include, e.g., one or more programmable microprocessors capable of executing sequences of instructions. Memory 204 can include volatile (e.g., DRAM) and nonvolatile (e.g., flash memory) storage in any combination. Other storage media (e.g., magnetic disk, optical disk) can also be provided. Memory 204 can be used to store instructions to be executed by processor 202 as well as input and/or output data associated with execution of the instructions.

Camera interface 206 can include hardware and/or software that enables communication between computer system 200 and cameras such as cameras 102, 104 of FIG. 1. Thus, for example, camera interface 206 can include one or more data ports 216, 218 to which cameras can be connected, as well as hardware and/or software signal processors to modify data signals received from the cameras (e.g., to reduce noise or reformat data) prior to providing the signals as inputs to a conventional motion-capture (“mocap”) program 214 executing on processor 202. In some embodiments, camera interface 206 can also transmit signals to the cameras, e.g., to activate or deactivate the cameras, to control camera settings (frame rate, image quality, sensitivity, etc.), or the like. Such signals can be transmitted, e.g., in response to control signals from processor 202, which may in turn be generated in response to user input or other detected events.

In some embodiments, memory 204 can store mocap program 214, which includes instructions for performing motion capture analysis on images supplied from cameras connected to camera interface 206. In one embodiment, mocap program 214 includes various modules, such as an image analysis module 222, a slice analysis module 224, and a global analysis module 226. Image analysis module 222 can analyze images, e.g., images captured via camera interface 206, to detect edges or other features of an object. Slice analysis module 224 can analyze image data from a slice of an image as described below, to generate an approximate cross-section of the object in a particular plane. Global analysis module 226 can correlate cross-sections across different slices and refine the analysis. Examples of operations that can be implemented in code modules of mocap program 214 are described below.

Memory 204 can also include other information used by mocap program 214; for example, memory 204 can store image data 228 and an object library 230 that can include canonical models of various objects of interest. As described below, an object being modeled can be identified by matching its shape to a model in object library 230.

Display 208, speakers 209, keyboard 210, and mouse 211 can be used to facilitate user interaction with computer system 200. These components can be of generally conventional design or modified as desired to provide any type of user interaction. In some embodiments, results of motion capture using camera interface 206 and mocap program 214 can be interpreted as user input. For example, a user can perform hand gestures that are analyzed using mocap program 214, and the results of this analysis can be interpreted as an instruction to some other program executing on processor 200 (e.g., a web browser, word processor or the like). Thus, by way of illustration, a user might be able to use upward or downward swiping gestures to “scroll” a webpage currently displayed on display 208, to use rotating gestures to increase or decrease the volume of audio output from speakers 209, and so on.

It will be appreciated that computer system 200 is illustrative and that variations and modifications are possible. Computers can be implemented in a variety of form factors, including server systems, desktop systems, laptop systems, tablets, smart phones or personal digital assistants, and so on. A particular implementation may include other functionality not described herein, e.g., wired and/or wireless network interfaces, media playing and/or recording capability, etc. In some embodiments, one or more cameras may be built into the computer rather than being supplied as separate components.

While computer system 200 is described herein with reference to particular blocks, it is to be understood that the blocks are defined for convenience of description and are not intended to imply a particular physical arrangement of component parts. Further, the blocks need not correspond to physically distinct components. To the extent that physically distinct components are used, connections between components (e.g., for data communication) can be wired and/or wireless as desired.

An example of a technique for motion capture using the system of FIGS. 1 and 2 will now be described. In this embodiment, cameras 102, 104 are operated to collect a sequence of images of an object 108. The images are time correlated such that an image from camera 102 can be paired with an image from camera 104 that was captured at the same time (within a few milliseconds). These images are then analyzed, e.g., using mocap program 214, to determine the object's position and shape in 3D space. In some embodiments, the analysis considers a stack of 2D cross-sections through the 3D spatial field of view of the cameras. These cross-sections are referred to herein as “slices.”

FIGS. 3A and 3B are conceptual illustrations of how slices are defined in a field of view according to an embodiment of the present invention. FIG. 3A shows, in top view, cameras 102 and 104 of FIG. 1. Camera 102 defines a vantage point 302, and camera 104 defines a vantage point 304. Line 306 joins vantage points 302 and 304. FIG. 3B shows a side view of cameras 102 and 104; in this view, camera 104 happens to be directly behind camera 102 and thus occluded; line 306 is perpendicular to the plane of the drawing. (It should be noted that the designation of these views as “top” and “side” is arbitrary; regardless of how the cameras are actually oriented in a particular setup, the “top” view can be understood as a view looking along a direction normal to the plane of the cameras, while the “side” view is a view in the plane of the cameras.)

An infinite number of planes can be drawn through line 306. A “slice” can be any one of those planes for which at least part of the plane is in the field of view of cameras 102 and 104. Several slices 308 are shown in FIG. 3B. (Slices 308 are seen edge-on; it is to be understood that they are 2D planes and not 1-D lines.) For purposes of motion capture analysis, slices can be selected at regular intervals in the field of view. For example, if the received images include a fixed number of rows of pixels (e.g., 1080 rows), each row can be a slice, or a subset of the rows can be used for faster processing. Where a subset of the rows is used, image data from adjacent rows can be averaged together, e.g., in groups of 2-3.

FIGS. 4A-4C illustrate an analysis that can be performed on a given slice. FIG. 4A is a top view of a slice as defined above, corresponding to an arbitrary cross-section 402 of an object. Regardless of the particular shape of cross-section 402, the object as seen from a first vantage point 404 has a “left illuminated edge” point 406 and a “right illuminated edge” point 408. As seen from a second vantage point 410, the same object has a “left illuminated edge” point 412 and a “right illuminated edge” point 414. These are in general different points on the boundary of object 402. A tangent line can be defined that connects each illuminated edge point and the associated vantage point. For example, FIG. 4A also shows that tangent line 416 can be defined through vantage point 404 and left illuminated edge point 406; tangent line 418 through vantage point 404 and right illuminated edge point 408; tangent line 420 through vantage point 410 and left illuminated edge point 412; and tangent line 422 through vantage point 410 and right illuminated edge point 414.

It should be noted that all points along any one of tangent lines 416, 418, 420, 422 will project to the same point on an image plane. Therefore, for an image of the object from a given vantage point, a left illuminated edge point and a right illuminated edge point can be identified in the image plane and projected back to the vantage point, as shown in FIG. 4B, which is another top view of a slice, showing the image plane for each vantage point. Image 440 is obtained from vantage point 442 and shows left illuminated edge point 446 and right illuminated edge point 448. Image 450 is obtained from vantage point 452 and shows left illuminated edge point 456 and right illuminated edge point 458. Tangent lines 462, 464, 466, 468 can be defined as shown. Given the tangent lines of FIG. 4B, the location in the slice of an elliptical cross-section can be determined, as illustrated in FIG. 4C, where ellipse 470 has been fit to tangent lines 462, 464, 466, 468 of FIG. 4B.

In general, as shown in FIG. 5, an ellipse in the xy plane can be characterized by five parameters: the x and y coordinates of the center (x_(C), y_(C)), the semimajor axis (a), the semiminor axis (b), and a rotation angle (θ) (e.g., the angle of the semimajor axis relative to the x axis). With only four tangents, as is the case in FIG. 4C, the ellipse is underdetermined. However, an efficient process for estimating the ellipse in spite of this has been developed. In various embodiments as described below, this involves making an initial working assumption (or “guess”) as to one of the parameters and revisiting the assumption as additional information is gathered during the analysis. This additional information can include, for example, physical constraints based on properties of the cameras and/or the object.

In some embodiments, more than four tangents to an object may be available for some or all of the slices, e.g., because more than two vantage points are available. An elliptical cross-section can still be determined, and the process in some instances is somewhat simplified as there is no need to assume a parameter value. In some instances, the additional tangents may create additional complexity. Examples of processes for analysis using more than four tangents are described below and in the '554 application noted above.

In some embodiments, fewer than four tangents to an object may be available for some or all of the slices, e.g., because an edge of the object is out of range of the field of view of one camera or because an edge was not detected. A slice with three tangents can be analyzed. For example, using two parameters from an ellipse fit to an adjacent slice (e.g., a slice that had at least four tangents), the system of equations for the ellipse and three tangents is sufficiently determined that it can be solved. As another option, a circle can be fit to the three tangents; defining a circle in a plane requires only three parameters (the center coordinates and the radius), so three tangents suffice to fit a circle. Slices with fewer than three tangents can be discarded or combined with adjacent slices.

In some embodiments, each of a number of slices is analyzed separately to determine the size and location of an elliptical cross-section of the object in that slice. This provides an initial 3D model (specifically, a stack of elliptical cross-sections), which can be refined by correlating the cross-sections across different slices. For example, it is expected that an object's surface will have continuity, and discontinuous ellipses can accordingly be discounted. Further refinement can be obtained by correlating the 3D model with itself across time, e.g., based on expectations related to continuity in motion and deformation.

A further understanding of the analysis process can be had by reference to FIGS. 6A-6B, which provide a flow diagram of a motion-capture process 600 according to an embodiment of the present invention. Process 600 can be implemented, e.g., in mocap program 214 of FIG. 2.

At block 602, a set of images—e.g., one image from each camera 102, 104 of FIG. 1—is obtained. In some embodiments, the images in a set are all taken at the same time (or within a few milliseconds), although a precise timing is not required. The techniques described herein for constructing an object model assume that the object is in the same place in all images in a set, which will be the case if images are taken at the same time. To the extent that the images in a set are taken at different times, motion of the object may degrade the quality of the result, but useful results can be obtained as long as the time between images in a set is small enough that the object does not move far, with the exact limits depending on the particular degree of precision desired.

At block 604, each slice is analyzed. FIG. 6B illustrates a per-slice analysis that can be performed at block 604. Referring to FIG. 6B, at block 606, illuminated edge points of the object in a given slice are identified in each image in the set. For example, edges of an object in an image can be detected using conventional techniques, such as contrast between adjacent pixels or groups of pixels. In some embodiments, if no illuminated edge points are detected for a particular slice (or if only one illuminated edge point is detected), no further analysis is performed on that slice. In some embodiments, edge detection can be performed for the image as a whole rather than on a per-slice basis.

At block 608, assuming enough illuminated edge points were identified, a tangent line from each illuminated edge point to the corresponding vantage point is defined, e.g., as shown in FIG. 4C and described above. At block 610 an initial assumption as to the value of one of the parameters of an ellipse is made, to reduce the number of free parameters from five to four. In some embodiments, the initial assumption can be, e.g., the semimajor axis (or width) of the ellipse. Alternatively, an assumption can be made as to eccentricity (ratio of semimajor axis to semiminor axis), and that assumption also reduces the number of free parameters from five to four. The assumed value can be based on prior information about the object. For example, if previous sequential images of the object have already been analyzed, it can be assumed that the dimensions of the object do not significantly change from image to image. As another example, if it is assumed that the object being modeled is a particular type of object (e.g., a hand), a parameter value can be assumed based on typical dimensions for objects of that type (e.g., an average cross-sectional dimension of a palm or finger). An arbitrary assumption can also be used, and any assumption can be refined through iterative analysis as described below.

At block 612, the tangent lines and the assumed parameter value are used to compute the other four parameters of an ellipse in the plane. For example, as shown in FIG. 7, four tangent lines 701, 702, 703, 704 define a family of inscribed ellipses 706 including ellipses 706 a, 706 b, and 706 c, where each inscribed ellipse 706 is tangent to all four of lines 701-704. Ellipse 706 a and 706 b represent the “extreme” cases (i.e., the most eccentric ellipses that are tangent to all four of lines 701-704. Intermediate between these extremes are an infinite number of other possible ellipses, of which one example, ellipse 706 c, is shown (dashed line).

The solution process selects one (or in some instances more than one) of the possible inscribed ellipses 706. In one embodiment, this can be done with reference to the general equation for an ellipse shown in FIG. 8. The notation follows that shown in FIG. 5, with (x, y) being the coordinates of a point on the ellipse, (x_(C), y_(C)) the center, a and b the axes, and θ the rotation angle. The coefficients C₁, C₂ and C₃ are defined in terms of these parameters, as shown in FIG. 8.

The number of free parameters can be reduced based on the observation that the centers (x_(C), y_(C)) of all the ellipses in family 706 line on a line segment 710 (also referred to herein as the “centerline”) between the center of ellipse 706 a (shown as point 712 a) and the center of ellipse 706 b (shown as point 712 b). FIG. 9 illustrates how a centerline can be found for an intersection region. Region 902 is a “closed” intersection region; that is, it is bounded by tangents 904, 906, 908, 910. The centerline can be found by identifying diagonal line segments 912, 914 that connect the opposite corners of region 902, identifying the midpoints 916, 918 of these line segments, and identifying the line segment 920 joining the midpoints as the centerline.

Region 930 is an “open” intersection region; that is, it is only partially bounded by tangents 904, 906, 908, 910. In this case, only one diagonal, line segment 932, can be defined. To define a centerline for region 930, centerline 920 from closed intersection region 902 can be extended into region 930 as shown. The portion of extended centerline 920 that is beyond line segment 932 is centerline 940 for region 930. In general, for any given set of tangent lines, both region 902 and region 930 can be considered during the solution process. (Often, one of these regions is outside the field of view of the cameras and can be discarded at a later stage.) Defining the centerline reduces the number of free parameters from five to four because y_(C) can be expressed as a (linear) function of x_(C) (or vice versa), based solely on the four tangent lines. However, for every point (x_(C), y_(C)) on the centerline, a set of parameters {θ, a, b} can be found for an inscribed ellipse. To reduce this to a set of discrete solutions, an assumed parameter value can be used. For example, it can be assumed that the semimajor axis a has a fixed value a₀. Then, only solutions {θ, a, b} that satisfy a=a₀ are accepted.

In one embodiment, the ellipse equation of FIG. 8 is solved for θ, subject to the constraints that: (1) (x_(C), y_(C)) must lie on the centerline determined from the four tangents (i.e., either centerline 920 or centerline 940 of FIG. 9); and (2) a is fixed at the assumed value a₀. The ellipse equation can either be solved for θ analytically or solved using an iterative numerical solver (e.g., a Newtonian solver as is known in the art). An analytic solution can be obtained by writing an equation for the distances to the four tangent lines given a y_(C) position, then solving for the value of y_(C) that corresponds to the desired radius parameter a=a₀. One analytic solution is illustrated in the equations of FIGS. 10A-10D. Shown in FIG. 10A are equations for four tangent lines in the xy plane (the slice). Coefficients A_(i), B_(i) and D_(i) (for i=1 to 4) can be determined from the tangent lines identified in an image slice as described above. FIG. 10B illustrates the definition of four column vectors r₁₂, r₂₃, r₁₄ and r₂₄ from the coefficients of FIG. 10A. The “\” operator here denotes matrix left division, which is defined for a square matrix M and a column vector v such that M\v=r, where r is the column vector that satisfies Mr=v. FIG. 10C illustrates the definition of G and H, which are four-component vectors from the vectors of tangent coefficients A, B and D and scalar quantities p and q, which are defined using the column vectors r₁₂, r₂₃, r₁₄ and r₂₄ from FIG. 10B.

FIG. 10D illustrates the definition of six scalar quantities v_(A2), v_(AB), v_(B2), w_(A2), w_(AB), and w_(B2) in terms of the components of vectors G and H of FIG. 10C.

Using the parameters defined in FIGS. 10A-10D, solving for θ is accomplished by solving the eighth-degree polynomial equation shown in FIG. 10E for t, where the coefficients Q_(i) (for i=0 to 8) are defined as shown in FIGS. 10E-10N. The parameters A₁, B₁, G₁, H₁, v_(A2), v_(AB), v_(B2), w_(A2), w_(AB), and w_(B2) used in FIGS. 10E-10N are defined as shown in FIGS. 10A-10D. The parameter n is the assumed semimajor axis (in other words, a₀). Once the real roots t are known, the possible values of θ are defined as θ=a tan(t).

As it happens, the equation of FIGS. 10E-10N has at most three real roots; thus, for any four tangent lines, there are at most three possible ellipses that are tangent to all four lines and satisfy the a=a₀ constraint. (In some instances, there may be fewer than three real roots.) For each real root θ, the corresponding values of (x_(C), y_(C)) and b can be readily determined. Depending on the particular inputs, zero or more solutions will be obtained; for example, in some instances, three solutions can be obtained for a typical configuration of tangents. Each solution is completely characterized by the parameters {θ, a=a₀, b, (x_(C), y_(C))}.

Referring again to FIG. 6B, at block 614, the solutions are filtered by applying various constraints based on known (or inferred) physical properties of the system. For example, some solutions would place the object outside the field of view of the cameras, and such solutions can readily be rejected. As another example, in some embodiments, the type of object being modeled is known (e.g., it can be known that the object is or is expected to be a human hand). Techniques for determining object type are described below; for now, it is noted that where the object type is known, properties of that object can be used to rule out solutions where the geometry is inconsistent with objects of that type. For example, human hands have a certain range of sizes and expected eccentricities in various cross-sections, and such ranges can be used to filter the solutions in a particular slice. These constraints can be represented in any suitable format, e.g., a physical model (as described below), an ordered list of parameters based on such a model, etc.

In some embodiments, cross-slice correlations can also be used to filter (or further filter) the solutions obtained at block 612. For example, if the object is known to be a hand, constraints on the spatial relationship between various parts of the hand (e.g., fingers have a limited range of motion relative to each other and/or to the palm of the hand) as represented in a physical model or explicit set of constraint parameters can be used to constrain one slice based on results from other slices. For purposes of cross-slice correlations, it should be noted that, as a result of the way slices are defined, the various slices may be tilted relative to each other, e.g., as shown in FIG. 3B. Accordingly, each planar cross-section can be further characterized by an additional angle φ, which can be defined relative to a reference direction 310 as shown in FIG. 3B.

At block 616, it is determined whether a satisfactory solution has been found. Various criteria can be used to assess whether a solution is satisfactory. For instance, if a unique solution is found (after filtering), that solution can be accepted, in which case process 600 proceeds to block 620 (described below). If multiple solutions remain or if all solutions were rejected in the filtering at block 614, it may be desirable to retry the analysis. If so, process 600 can return to block 610, allowing a change in the assumption used in computing the parameters of the ellipse.

Retrying can be triggered under various conditions. For example, in some instances, 30 the initial parameter assumption (e.g., a=a₀) may produce no solutions or only nonphysical solutions (e.g., object outside the cameras' field of view). In this case, the analysis can be retried with a different assumption. In one embodiment, a small constant (which can be positive or negative) is added to the initial assumed parameter value (e.g., a₀) and the new value is used to generate a new set of solutions. This can be repeated until an acceptable solution is found (or until the parameter value reaches a limit). An alternative approach is to keep the same assumption but to relax the constraint that the ellipse be tangent to all four lines, e.g., by allowing the ellipse to be nearly but not exactly tangent to one or more of the lines. (In some embodiments, this relaxed constraint can also be used in the initial pass through the analysis.)

It should be noted that in some embodiments, multiple elliptical cross-sections may be found in some or all of the slices. For example, in some planes, a complex object (e.g., a hand) may have a cross-section with multiple disjoint elements (e.g., in a plane that intersects the fingers). Ellipse-based reconstruction techniques as described herein can account for such complexity; examples are described below. Thus, it is generally not required that a single ellipse be found in a slice, and in some instances, solutions entailing multiple ellipses may be favored.

For a given slice, the analysis of FIG. 6B yields zero or more elliptical cross-sections. In some instances, even after filtering at block 616, there may still be two or more possible solutions. These ambiguities can be addressed in further processing as described below.

Referring again to FIG. 6A, the per-slice analysis of block 604 can be performed for any number of slices, and different slices can be analyzed in parallel or sequentially, depending on available processing resources. The result is a 3D model of the object, where the model is constructed by, in effect, stacking the slices. At block 620, cross-slice correlations are used to refine the model. For example, as noted above, in some instances, multiple solutions may have been found for a particular slice. It is likely that the “correct” solution (i.e., the ellipse that best corresponds to the actual position of the object) will correlate well with solutions in other slices, while any “spurious” solutions (i.e., ellipses that do not correspond to the actual position of the object) will not. Uncorrelated ellipses can be discarded. In some embodiments where slices are analyzed sequentially, block 620 can be performed iteratively as each slice is analyzed.

At block 622, the 3D model can be further refined, e.g., based on an identification of the type of object being modeled. In some embodiments, a library of object types can be provided (e.g., as object library 230 of FIG. 2). For each object type, the library can provide characteristic parameters for the object in a range of possible poses (e.g., in the case of a hand, the poses can include different finger positions, different orientations relative to the cameras, etc.). Based on these characteristic parameters, a reconstructed 3D model can be compared to various object types in the library. If a match is found, the matching object type is assigned to the model.

Once an object type is determined, the 3D model can be refined using constraints based on characteristics of the object type. For instance, a human hand would characteristically have five fingers (not six), and the fingers would be constrained in their positions and angles relative to each other and to a palm portion of the hand. Any ellipses in the model that are inconsistent with these constraints can be discarded. In some embodiments, block 622 can include recomputing all or portions of the per-slice analysis (block 604) and/or cross-slice correlation analysis (block 620) subject to the type-based constraints. In some instances, applying type-based constraints may cause deterioration in accuracy of reconstruction if the object is misidentified. (Whether this is a concern depends on implementation, and type-based constraints can be omitted if desired.)

In some embodiments, object library 230 can be dynamically and/or iteratively updated. For example, based on characteristic parameters, an object being modeled can be identified as a hand. As the motion of the hand is modeled across time, information from the model can be used to revise the characteristic parameters and/or define additional characteristic parameters, e.g., additional poses that a hand may present.

In some embodiments, refinement at block 622 can also include correlating results of analyzing images across time. It is contemplated that a series of images can be obtained as the object moves and/or articulates. Since the images are expected to include the same object, information about the object determined from one set of images at one time can be used to constrain the model of the object at a later time. (Temporal refinement can also be performed “backward” in time, with information from later images being used to refine analysis of images at earlier times.)

At block 624, a next set of images can be obtained, and process 600 can return to block 604 to analyze slices of the next set of images. In some embodiments, analysis of the next set of images can be informed by results of analyzing previous sets. For example, if an object type was determined, type-based constraints can be applied in the initial per-slice analysis, on the assumption that successive images are of the same object. In addition, images can be correlated across time, and these correlations can be used to further refine the model, e.g., by rejecting discontinuous jumps in the object's position or ellipses that appear at one time point but completely disappear at the next.

It will be appreciated that the motion capture process described herein is illustrative and that variations and modifications are possible. Steps described as sequential may be executed in parallel, order of steps may be varied, and steps may be modified, combined, added or omitted. Different mathematical formulations and/or solution procedures can be substituted for those shown herein. Various phases of the analysis can be iterated, as noted above, and the degree to which iterative improvement is used may be chosen based on a particular application of the technology. For example, if motion capture is being used to provide real-time interaction (e.g., to control a computer system), the data capture and analysis should be performed fast enough that the system response feels like real time to the user. Inaccuracies in the model can be tolerated as long as they do not adversely affect the interpretation or response to a user's motion. In other applications, e.g., where the motion capture data is to be used for rendering in the context of digital movie-making, an analysis with more iterations that produces a more refined (and accurate) model may be preferred. As noted above, an object being modeled can be a “complex” object and consequently may present multiple discrete ellipses in some cross-sections. For example, a hand has fingers, and a cross-section through the fingers may include as many as five discrete elements. The analysis techniques described above can be used to model complex objects.

By way of example, FIGS. 11A-11C illustrate some cases of interest. In FIG. 11A, cross-sections 1102, 1104 would appear as distinct objects in images from both of vantage points 1106, 1108. In some embodiments, it is possible to distinguish object from background; for example, in an infrared image, a heat-producing object (e.g., living organisms) may appear bright against a dark background. Where object can be distinguished from background, tangent lines 1110 and 1111 can be identified as a pair of tangents associated with opposite edges of one apparent object while tangent lines 1112 and 1113 can be identified as a pair of tangents associated with opposite edges of another apparent object. Similarly, tangent lines 1114 and 1115, and tangent lines 1116 and 1117 can be paired. If it is known that vantage points 1106 and 1108 are on the same side of the object to be modeled, it is possible to infer that tangent pairs 1110, 1111 and 1116, 1117 should be associated with the same apparent object, and similarly for tangent pairs 1112, 1113 and 1114, 1115. This reduces the problem to two instances of the ellipse-fitting process described above. If less information is available, an optimum solution can be determined by iteratively trying different possible assignments of the tangents in the slice in question, rejecting non-physical solutions, and cross-correlating results from other slices to determine the most likely set of ellipses.

In FIG. 11B, ellipse 1120 partially occludes ellipse 1122 from both vantage points. In some embodiments, it may or may not be possible to detect the “occlusion” edges 1124, 1126. If edges 1124 and 1126 are not detected, the image appears as a single object and is reconstructed as a single elliptical cross-section. In this instance, information from other slices or temporal correlation across images may reveal the error. If occlusion edges 1124 and/or 1126 are visible, it may be apparent that there are multiple objects (or that the object has a complex shape) but it may not be apparent which object or object portion is in front. In this case, it is possible to compute multiple alternative solutions, and the optimum solution may be ambiguous. Spatial correlations across slices, temporal correlations across image sets, and/or physical constraints based on object type can be used to resolve the ambiguity.

In FIG. 11C, ellipse 1140 fully occludes ellipse 1142. In this case, the analysis described above would not show ellipse 1142 in this particular slice. However, spatial correlations across slices, temporal correlations across image sets, and/or physical constraints based on object type can be used to infer the presence of ellipse 1142, and its position can be further constrained by the fact that it is apparently occluded. In some embodiments, multiple discrete cross-sections (e.g., in any of FIGS. 11A-11C) can also be resolved using successive image sets across time. For example, the four-tangent slices for successive images can be aligned and used to define a slice with 5-8 tangents. This slice can be analyzed using techniques described below.

In one embodiment of the present invention, a motion capture system can be used to detect the 3D position and movement of a human hand. In this embodiment, two cameras are arranged as shown in FIG. 1, with a spacing of about 1.5 cm between them. Each camera is an infrared camera with an image rate of about 60 frames per second and a resolution of 640×480 pixels per frame. An infrared light source (e.g., an IR light-emitting diode) that approximates a point light source is placed between the cameras to create a strong contrast between the object of interest (in this case, a hand) and background. The falloff of light with distance creates a strong contrast if the object is a few inches away from the light source while the background is several feet away.

The image is analyzed using contrast between adjacent pixels to detect edges of the object. Bright pixels (detected illumination above a threshold) are assumed to be part of the object while dark pixels (detected illumination below a threshold) are assumed to be part of the background. Edge detection may take approximately 2 ms with conventional processing capability. The edges and the known camera positions are used to define tangent lines in each of 480 slices (one slice per row of pixels), and ellipses are determined from the tangents using the analytical technique described above with reference to FIGS. 6A and 6B. In a typical case of modeling a hand, roughly 800-1200 ellipses are generated from a single pair of image frames (the number depends on the orientation and shape of the hand) within, in various embodiments, about 6 ms. The error in modeling finger position in one embodiment is less than 0.1 mm.

FIG. 12 illustrates a model 1200 of a hand that can be generated using the system just described. As can be seen, the model does not have the exact shape of a hand, but a palm 1202, thumb 1204 and four fingers 1206 can be clearly recognized. Such models can be useful as the basis for constructing more realistic models. For example, a skeleton model for a hand can be defined, and the positions of various joints in the skeleton model can be determined by reference to model 1200. Using the skeleton model, a more realistic image of a hand can be rendered. Alternatively, a more realistic model may not be needed. For example, model 1200 accurately indicates the position of thumb 1204 and fingers 1206, and a sequence of models 1200 captured across time will indicate movement of these digits. Thus, gestures can be recognized directly from model 1200. The point is that ellipses identified and tracked as described above can be used to drive visual representations of the object tracked by application to a physical model of the object. The model may be selected based on a desired degree of realism, the response time desired (or the latency that can be tolerated), and available computational resources.

It will be appreciated that this example system is illustrative and that variations and modifications are possible. Different types and arrangements of cameras can be used, and appropriate image analysis techniques can be used to distinguish object from background and thereby determine a silhouette (or a set of edge locations for the object) that can in turn be used to define tangent lines to the object in various 2D slices as described above. Given four tangent lines to an object, where the tangents are associated with at least two vantage points, an elliptical cross-section can be determined; for this purpose it does not matter how the tangent lines are determined. Thus, a variety of imaging systems and techniques can be used to capture images of an object that can be used for edge detection. In some cases, more than four tangents can be determined in a given slice. For example, more than two vantage points can be provided.

In one alternative embodiment, three cameras can be used to capture images of an object. FIG. 13 is a simplified system diagram for a system 1300 with three cameras 1302, 1304, 1306 according to an embodiment of the present invention. Each camera 1302, 1304, 1306 provides a vantage point 1308, 1310, 1312 and is oriented toward an object of interest 1313. In this embodiment, cameras 1302, 1304, 1306 are arranged such that vantage points 1308, 1310, 1312 lie in a single line 1314 in 3D space. Two-dimensional slices can be defined as described above, except that all three vantage points 1308, 1310, 1312 are included in each slice. The optical axes of cameras 1302, 1304, 1306 can be but need not be aligned, as long as the locations of vantage points 1308, 1310, 1312 are known. With three cameras, six tangents to an object can be available in a single slice. FIG. 14 illustrates a cross-section 1402 of an object as seen from vantage points 1308, 1310, 1312. Lines 1408, 1410, 1412, 1414, 1416, 1418 are tangent lines to cross-section 1402 from vantage points 1308, 1310, 1312, respectively.

For any slice with five or more tangents, the parameters of an ellipse are fully determined, and a variety of techniques can be used to fit an elliptical cross-section to the tangent lines. FIG. 15 illustrates one technique, relying on the “centerline” concept illustrated above in FIG. 9. From a first set of four tangents 1502, 1504, 1506, 1508 associated with a first pair of vantage points, a first intersection region 1510 and corresponding centerline 1512 can be determined. From a second set of four tangents 1504, 1506, 1514, 1516 associated with a second pair of vantage points, a second intersection region 1518 and corresponding centerline 1520 can be determined. The ellipse of interest 1522 should be inscribed in both intersection regions. The center of ellipse 1522 is therefore the intersection point 1524 of centerlines 1512 and 1520. In this example, one of the vantage points (and the corresponding two tangents 1504, 1506) are used for both sets of tangents. Given more than three vantage points, the two sets of tangents could be disjoint if desired.

Where more than five tangent points (or other points on the object's surface) are available, the elliptical cross-section is mathematically overdetermined. The extra information can be used to refine the elliptical parameters, e.g., using statistical criteria for a best fit. In other embodiments, the extra information can be used to determine an ellipse for every combination of five tangents, then combine the elliptical contours in a piecewise fashion. Alternatively, the extra information can be used to weaken the assumption that the cross-section is an ellipse and allow for a more detailed contour. For example, a cubic closed curve can be fit to five or more tangents.

In some embodiments, data from three or more vantage points is used where available, and four-tangent techniques (e.g., as described above) can be used for areas that are within the field of view of only two of the vantage points, thereby expanding the spatial range of a motion-capture system.

While thus far the invention has been described with respect to specific embodiments, one skilled in the art will recognize that numerous modifications are possible. The techniques described above can be used to reconstruct objects from as few as four tangent lines in a slice, where the tangent lines are defined between edges of a projection of the object onto a plane and two different vantage points. Thus, for purposes of the analysis techniques described herein, the edges of an object in an image are of primary significance. Any image or imaging system that supports determining locations of edges of an object in an image plane can therefore be used to obtain data for the analysis described herein.

For instance, in embodiments described above, the object is projected onto an image plane using two different cameras to provide the two different vantage points, and the illuminated edge points are defined in the image plane of each camera. However, those skilled in the art with access to the present disclosure will appreciate that it may be possible to use a single camera to capture motion and/or determine the shape and position of the object in 3D space.

One skilled in the art with access to the present disclosure will appreciate that it is possible to use more or fewer than two cameras to capture motion and/or determine the shape and position of the object in 3D space. Referring to FIG. 16A, in some embodiments, the motion-capture system 1600 includes a single camera 1602. A cross-section 1604 of the object as described above may be fit to an ellipse or any other simple closed curve. If an ellipse is used, the ellipse can be characterized by five parameters, namely, the x and y coordinates of the elliptical center (x_(C), y_(C)), the semimajor axis (a), the semiminor axis (b), and a rotation angle (θ) (e.g., the angle of the semimajor axis relative to the x axis); five equations specify the five characteristic parameters, thereby identifying the ellipse. In various embodiments, the single camera 1602 has a vantage point 1606 that can detect two light rays 1608, 1610 transmitted from a left-edge tangent point 1612 and a right-edge tangent point 1614, respectively, on the cross-section 1604. The two tangent points 1612, 1614 define a viewed portion 1616 of the cross-section 1604 within which the portion of the cross-section is within the field of view of the camera. The two tangent points 1612, 1614 provide two equations that can partially determine the ellipse 1618 that fits most closely to the cross-section 1604.

FIG. 16B illustrates a motion-capture system 1600 that includes three light sources (e.g., LEDs) 1620, 1622, 1624 to illuminate the object and provide additional information about the cross-section 1604 to determine the parameters of the ellipse. In one embodiment, depending on the relative positions between the object, the camera 1602, and the light sources 1620, 1622, 1624, the camera 1602 detects shadow (e.g., unilluminated) regions on the cross-section 1604 created by the light sources 1620, 1622, 1624. For example, the light source 1620 illuminates a partial portion 1626 of the cross-section 1604; the illuminated portion 1626 is determined by the position of the light source 1620 and two illuminated edge points 1628, 1630. For example, the two illuminated edge points 1628, 1630 may be defined by the light rays 1632, 1634 tangent to the cross-section 1604. As a result, a shadow (or unilluminated) region 1636 that has limited exposure to the light illumination from the light source 1620 can be observed on the cross-section 1604.

Because the viewed portion of the cross-section 1604 within the camera's field of view is defined by the two tangent points 1612, 1614, the camera 1602 can detect the illuminated part 1638 between the tangent points 1612 and 1628 and the shadow region 1640 between the tangent points 1628 and 1614. Accordingly, the boundary between the shadow region 1640 and the illuminated part 1638 defines a shadow edge point 1628. In various embodiments, the shadow edge point 1628 is detected by the camera 1602; the detected shadow point 1628 can provide two additional equations that further determine the characteristic ellipse parameters. The first equation is based on the detected position of the shadow edge point 1628, and the second equation is based on a light ray 1642 emitted from the light source 1620 to the shadow edge point 1628. In one embodiment, the path of the light ray 1642 is based on the spatial relationship between the camera 1602 and the light source 1616. Although the detected shadow edge point 1628 provides two additional equations to determine the characteristic parameters of the ellipse, the shadow edge point 1628 introduces an additional unknown parameter (e.g. the distance between the camera 1602 and the shadow edge point 1628).

FIG. 16C shows how multiple light sources 1620, 1622, 1624 illuminate the cross-section 1604 and generate multiple shadow regions 1644, 1646, 1648, respectively. Shadow edge points 1628, 1650, 1652 defining boundaries between the shadow regions 1644, 1646, 1648 and the illuminated regions are detected by the camera 1602. As described above, each detected shadow edge point 1628, 1650, 1652 can provide two additional equations that contribute to determining the characteristic ellipse parameters. In addition, each detected shadow edge point 1628, 1650, 1652 may also introduce an additional unknown parameter (e.g. the distance between the camera 1602 and the corresponding shadow edge point). As a result, utilizing three light sources 1620, 1622, 1624 creates three additional unknown parameters and provides six equations to determine the characteristic the ellipse parameters.

In summary, when the motion-capture system 1600 includes three light sources 1620, 1622, 1624, each creating a shadow edge point on the cross-section 1604 of the object, eight unknown parameters—including the five characteristic parameters of the ellipse and the three distances from the camera 1602 to the three shadow edge points 1628, 1646, 1656—are solved to determine the position, rotation, and size of the ellipse. In various embodiments, the camera 1602 detects two tangent points 1612, 1614 on the object cross-section that provide two equations to partially determine the eight unknown parameters and the three shadow edge points 1628, 1646, 1656 created by light emitted from the light sources 1620, 1622, 1624 onto the cross-section 1604 of the object. Because each shadow edge point 1628, 1646, 1656 provides two equations, the motion-capture system 1600 thus has eight equations to solve for the eight unknown parameters, including five unknown ellipse parameters and the three unknown distances introduced by the three shadow edge points 1628, 1646, 1656.

In some embodiments, the motion-capture system 1600 includes fewer than three light sources, such as two light sources 1620, 1622. The two light sources 1620, 1622 create two unknown parameters (i.e., the distance between the camera and the shadow edge points generated by the light sources 1620, 1622) and four equations (i.e., the two positions of the shadow edge points and the two light rays emitted from the light sources 1620, 1622 to the shadow edge points). Accordingly, the motion-capture system 1600 has, in total, seven unknown parameters and six equations, so the ellipse is underdetermined. Because the six equations by themselves cannot have an exact solution for the seven unknown parameters, in one embodiment, one of the seven unknown parameters is initially estimated. The estimated parameter is then applied to the six equations, and the other six unknown parameters can be solved. In one embodiment, the self-consistency of the estimated parameter and the six solved parameters is checked in the end of the process to determine the accuracy of the estimated parameter. This process may iterate until a maximum self-consistency or accuracy of the estimated parameter is obtained.

In some embodiments, there are more than three light sources, yielding more available equations than unknown parameters, and the ellipse is overdetermined. The extra equations may be utilized to refine the elliptical parameters, e.g., using statistical criteria for a best fit. Alternatively, the extra information can be used to weaken the assumption that the cross-section is an ellipse and allow for a more detailed contour. For example, a cubic closed curve can be fit to the two tangent points and the three shadow points. In some embodiments, the extra equations may be used to optimize the speed and/or accuracy of a numerical solver that is utilized to solve the unknown parameters and is implemented on a general-purpose computing device.

In some embodiments, the light sources 1620, 1622, 1624 are pulsed on individually and in succession, allowing for each of the shadow regions 1644, 1646, 1648 and the shadow points 1628, 1650, 1652 to be associated with a single light source. In some embodiments, light sources 1616, 1618, and 1620 may be of different wavelengths, allowing the shadow edge points 1628, 1650, 1652 to be easily identified.

Additionally, those skilled in the art with access to the present disclosure will appreciate that cameras are not the only tool capable of projecting an object onto an imaging surface. For example, a light source can create a shadow of an object on a target surface, and the shadow—captured as an image of the target surface—can provide a projection of the object that suffices for detecting edges and defining tangent lines. The light source can produce light in any visible or non-visible portion of the electromagnetic spectrum. Any frequency (or range of frequencies) can be used, provided that the object of interest is opaque to such frequencies while the ambient environment in which the object moves is not. The light sources used should be bright enough to cast distinct shadows on the target surface. Point-like light sources provide sharper edges than diffuse light sources, but any type of light source can be used.

In one such embodiment, a single camera is used to capture images of shadows cast by multiple light sources. FIG. 17 illustrates a system 1700 for capturing shadows of an object according to an embodiment of the present invention. Light sources 1702 and 1704 illuminate an object 1706, casting shadows 1708, 1710 onto a front side 1712 of a surface 1714. Surface 1714 can be translucent so that the shadows are also visible on its back side 1716. A camera 1718 can be oriented toward back side 1716 as shown and can capture images of shadows 1708, 1710. With this arrangement, object 1706 does not occlude the shadows captured by camera 1718. Light sources 1702 and 1704 define two vantage points, from which tangent lines 1720, 1722, 1724, 1726 can be determined based on the edges of shadows 1708, 1710. These four tangents can be analyzed using techniques described above.

In an embodiment such as system 1700 of FIG. 17, shadows created by different light sources may partially overlap, depending on where the object is placed relative to the light source. In such a case, an image may have shadows with penumbra regions (where only one light source is contributing to the shadow) and an umbra region (where the shadows from both light sources overlap). Detecting edges can include detecting the transition from penumbra to umbra region (or vice versa) and inferring a shadow edge at that location. Since an umbra region will be darker than a penumbra region; contrast-based analysis can be used to detect these transitions.

Certain physical or object configurations may present ambiguities that are resolved in accordance with various embodiments we as now discussed. Referring to FIG. 18, when two objects 1808, 1810 are present, the camera 1820 may detect four shadows 1812, 1814, 1816, 1818 and the tangent lines may create four intersection regions 1822, 1824, 1826, 1828 that all lie within the shadow regions 1830, 1832, 1834, 1836. Because it is difficult to determine, from a single slice of the shadow image, which of these intersection regions contain portions of the object, an analysis of whether the intersection regions 1822, 1824, 1826, 1828 are occupied by the objects may be ambiguous. For example, shadows 1812, 1814, 1816, 1818 that are generated when intersection regions 1822 and 1826 are occupied are the same as those generated when regions 1824 and 1828 are occupied, or when all four intersection regions 1822, 1824, 1826, 1828 are occupied. In one embodiment, correlations across slices are used to resolve the ambiguity in interpreting the intersection regions (or “visual hulls”) 1822, 1824, 1826, 1828.

In various embodiments, referring to FIG. 19, a system 1900 incorporates a large number of light sources (i.e., more than two light sources) to resolve the ambiguity of the intersection regions when there are multiple objects casting shadows. For example, the system 1900 includes three light sources 1902, 1904, 1906 to cast light onto a translucent surface 1910 and a camera 1912 positioned on the opposite side of surface 1910 to avoid occluding the shadows cast by an object 1914. As shown in FIG. 19, because utilization of three light sources provides five or more tangents for one or more objects 1914 in a slice, the ellipse-fitting techniques described above may be used to determine the cross-sections of the objects. A collection of the cross-sections of the objects in 2D slices may then determine the locations and/or movement of the objects.

If multiple objects, however, are located in close proximity (e.g., the fingers of a hand), utilization of additional light sources may reduce the sizes of the various intersection regions as well as increase the total number of intersection regions. If the number of light sources is much greater than the number of the proximal objects, the intersection regions may be too small to be analyzed based on a known or assumed size scale of the object. Additionally, the increased number of intersection regions may result in more ambiguity in distinguishing intersection regions that contain objects from intersection regions that do not contain objects (i.e., “blind spots”). In various embodiments, whether an intersection region contains an object is determined based on the properties of a collection of intersection points therein. As described in greater detail below, an intersection point is defined by at least two shadow lines, each connecting a shadow point of the shadow and a light source. If the intersection points in an intersection region satisfy certain criteria, the intersection region is considered to have the objects therein. A collection of the intersection regions may then be utilized to determine the shape and movement of the objects.

Referring to FIG. 20, a collection of the intersection regions (a visual hull) 2030 is defined by a virtual rubber band 2032 stretched around multiple intersection regions 2031 (or “convex hulls”); each intersection region 2031 is defined by a smallest set of intersection points 2034. When there are multiple intersection regions 2031, distinguishing each intersection region 2031 from a collection of intersection points 2034 may be difficult. In some embodiments, referring to FIG. 21, a simple visual hull is first constructed by a setup of two lights 2102, 2104 (here denoted Ln, with n={1, 2} to permit further generalization to greater numbers of light sources, shadows, shadow regions, points, and visual hulls), each casting one shadow 2106A, 2106B, respectively. The light source L₁ and shadow 2106A define a shadow region, R_(1,1); similarly, light source L₂ and the shadow 2106B define a shadow region, R_(2,1); in general, the shadow region is denoted as, R_(u,v), where u is the number of the corresponding light source and v is a number that denotes a left to right ordering in a scene within the set of all shadow regions from the light source u. Boundaries of the shadows (or “shadow points”) lie on an x axis and are denoted by S_(u,v). The shadow points and each light source may then create shadow lines 2108, 2110, 2112, 2114; the shadow lines are referenced by the two connecting points; for example, L₁S_(1,2) , (abbreviated S_(1,2) , where the first subscript also refers to the light number). The convex hull 2130 (or visual hull here since there is only one intersection region 2128) may then be defined by the four intersection points 2134 in the example of FIG. 21. In one embodiment, the intersection points 2134 are determined based on the intersections of every pair of shadow lines, for example, S_(1,1) , S_(1,2) , S_(2,1) , and S_(2,2) . Because pairs of shadow lines from the same light source L₁ or L₂ do not intersect, the intersection of the pairs of lines from the same light source may then be neglected.

When there are more than two light sources, determining all shadow line intersections no longer suffices to find intersection points that lie on the intersection region 2128. Referring to FIG. 22A, utilization of three light sources 2202, 2204, 2206, may result in “true” intersection points 2234A, 2234B, 2234C, 2234D, 2234E, 2234F that form the intersection region 2228 occupied by the object 2208 and “false” intersection points 2235A, 2235B, 2235C, 2235D, 2235E, 2235F that clearly do not form the intersection region 2228. For example, the false intersection point 2235E created by a left shadow line 2224 of the shadow region 2218A and a right shadow line 2226 of the shadow region 2218B is a false intersection point because it does not lie inside the intersection region 2228. Because the intersection region 2228 is an intersection of the shadow regions 2218A, 2218B, 2218C created by the object 2208 and the light sources 2202, 2204, 2206, the number of shadow regions in which each “true” intersection point lies is equal to the number of the light sources (i.e., three in FIG. 22A). “False” intersection points, by contrast, lie outside the intersection region 2228 even though they may lie inside an intersection region that includes fewer number of shadow regions compared to the total number of light sources. In one embodiment, whether an intersection point is “true” or “false” is determined based on the number of shadow regions included in the intersection region in which the intersection point lies. For example, in the presence of three light sources in FIG. 22A, the intersection point 2234A is a true intersection point because it lies inside three shadow regions 2218A, 2218B, 2218C; whereas the intersection point 2235F is a false intersection point because it lies inside only two shadow regions 2218B, 2218C.

Because the intersection regions are defined by a collection of intersection points, excessive computational effort may be required to determine whether an intersection point is contained by a correct number of regions (i.e., the number of the light sources). In some embodiments, this computational complexity is reduced by assuming that each intersection point is not “false” and then determining whether the results are consistent with all of the shadows captured by the camera. These configurations project each intersection point I=[I_(x),I_(x)] onto the x axis through a ray directed from each light source L=[L_(x),L_(x)] that is not involved in the original intersection determination. The solutions for these projections are given by

$\left\lbrack {\frac{{L_{y}P_{x}} - {L_{x}P_{y}}}{L_{y} - P_{y}},0} \right\rbrack.$

If a projection point on the x axis lies inside a shadow region from the testing light source, it is likely that the projected intersection point is a true intersection point. For example, referring to FIG. 22B, the intersection point 2235E is determined by the shadow lines 2224 and 2226 created by the light sources 2202 and 2206. Projecting the intersection point 2235E onto the x axis using the light source 2206, which is not involved in determining the intersection point 2235E, creates a projection point P₃. Because the projection point P₃ does not lie inside the shadow region 2218C created by the light source 2206 and the object 2208, the intersection point 2235E is considered to be a false intersection point; whereas the intersection point 2234E is a true intersection point because the projection point P₁ thereof lies within the shadow region 2218A. As a result, for every possible intersection point, an additional N−2 projections must be determined for the N−2 light sources that are not involved in determining the position of the intersection point (where N is the total number of light sources in the system). In other words, a projection check must be made for every light source other than the original two that are used to determine the tested intersection point. Because determining whether the intersection point is true or false based on the projections is simpler than checking the number of shadow regions in which each intersection point lies, the required computational requirements and processing time may be significantly reduced.

If, however, a large quantity of light sources is utilized in the system, the overall process may still be time-consuming. In various embodiments, the light sources L₁, L₂, and L₃ are placed in a line parallel to the x axis, the location of the projection points can then be determined without finding the location of the intersection point for every pair of shadow lines. Accordingly, whether the intersection point 2234 is a true or false point may be determined without finding or locating the position thereof; this further reduces the processing time. For example, with reference to FIG. 22C, assuming that the shadow points S₁ and S₃ are either known or have been determined, whether the intersection point I of the shadow lines L₁S₃ and L₃S₁ is true or false may be determined by the position of the projection point P₂ created by the light source L₂. The distance between the projection point P₂ created by the light source L₂ and the shadow point S₁ is given as:

$\begin{matrix} {\overset{\_}{S_{1}P_{2}} = {\overset{\_}{S_{1}S_{3}}\left\lbrack \frac{\overset{\_}{L_{2}L_{3}}}{L_{1}L_{3}} \right\rbrack}} & \left( {{Eq}.\mspace{14mu} 1} \right) \end{matrix}$

Thus, the location of any one of the projection points projected from the intersection point, I, and light sources may be determined based on the other two shadow points and the distance ratios associated with light sources L₁, L₂ and L₃. Because the ratio of the distances between the light sources is predetermined, the complexity in determining the projection point P₂ is reduced to little more than calculating distances between the shadow points and multiplying these distances by the predetermined ratio. If the distance between the projection point P₂ and the shadow point S₁ is larger than the size of the shadow, i.e., S₁S₃ , that is captured by the camera, the intersection point, I, is a false point. If, on the other hand, the distance between the projection points S₂ and S₁ is smaller than the size of the shadow, the intersection point I is likely a true point. Although the location of the intersection point, I, may still be determined based on the shadow lines L₁S₃ and L₃S₁ , this determination may be skipped during the process. Accordingly, by aligning the light sources in a line, the false intersection points can be quickly determined without performing the complex computations, thereby saving a large amount of processing time and power.

More generally, when there are N light sources, each denoted as L_(i) (1≦i≦N), arranged on a line parallel to the x axis and each light source possesses a set of S_(i) shadow points (where i is the light number), a total number of M intersection calculations for all possible intersection pairs is given as:

$\begin{matrix} {M = {\sum\limits_{i = 1}^{N - 1}{{S_{i}\left( {\sum\limits_{k = {i + 1}}^{N}S_{k}} \right)}.}}} & \left( {{Eq}.\mspace{14mu} 2} \right) \end{matrix}$

For example, if there are N light sources, each casting n shadows, the total number of intersection calculations M may then be given as

M=n ² N(N−1).  (Eq. 3)

Because each of these intersection calculations involves multiple operations (e.g., addition and multiplication), the total number of operations, T_(o), may be given as

T _(o)=2n ² N(2N+1)(N−1).  (Eq. 4)

For example, a total number of operations T_(o)=2(1)²3(2·3+1)(3−1)=84 is required to determine the simplest visual hull 2128 shown in FIG. 21. In one embodiment, there are, for example, 12 light sources (i.e., N=12), each casting 10 shadows (i.e., n=10); the number of required intersection calculations for this scenario is M=13,200, setting the number of total operations to be T_(o)=660,000. Again, this requires a significant amount of processing time. In some embodiments, the distance ratios between light sources are predetermined, and as a result, only one operation (i.e., multiplication) is needed to determine which pairs of shadow points produce true intersection points; this reduces the number of total operations to 13,200.

The computational load required to find the visual hull depends on the quantity of the true intersection points, which may not be uniquely determined by the number of shadows. Suppose, for example, that there are N light sources and each object is a circle that casts one shadow per light; this results in N intersection regions (or 6N intersection points) per object. Because there are n objects, the resulting number of intersection points that need to be checked is 6Nn² (i.e., roughly 6,000 for 10 objects cast by 12 light sources). As described above, the number of operations required for the projection check is 13,200; accordingly, a total number of operations 19,200 is necessary to determine the visual hull formed by the true intersection points. This is a 34-fold improvement in determining the solution for a single 2D scene compared to the previous estimate of 660,000 operations. The number of reduced operations may be given as:

T _(P) =n ² N(N−1)+6Nn ²  (Eq. 5)

The ratio of the required operations to the reduced operations may then be expressed as:

$\begin{matrix} {\frac{T_{o}}{T_{p}} = \frac{2{n\left( {{2N} + 1} \right)}\left( {N - 1} \right)}{{nN} - n + {6n}}} & \left( {{Eq}.\mspace{14mu} 6} \right) \end{matrix}$

Based on Eq. 6, if the light sources lie along a line or lines parallel to the x axis, the improvement is around an order of magnitude for a small number of lights, whereas the improvement is nearly two orders of magnitude for a larger number of lights.

If the objects are reconstructed in 3D space and/or a fast real-time refresh rate (e.g., 30 frames per second) is used by the camera, the computational load may be increased by several orders of magnitude due to the additional complexity. In some embodiments, the visual hull is split into a number of small intersection regions that can generate at least a portion of the shadows in the scene; the smallest cardinality of the set of small intersection regions is defined as a “minimal solution.” In one embodiment, the number of the small intersection regions in the minimal solution is equal to the largest number of shadows generated by any single light source. The computational complexity of obtaining the visual hull may significantly be reduced by determining each of the small visual hulls prior to assembling them together into the visual hull.

Referring again to FIG. 20, the intersection points 2034 may form an amorphous cloud that does not imply particular regions. In various embodiments, this cloud is first split into a number of sets, each set determining an associated convex hull 2031. As further described below, in one embodiment, a measure is utilized to determine the intersection region to which each intersection point belongs. The determined intersection region may then be assembled into an exact visual hull. In one implementation, the trivial case of a visual hull containing only one intersection region is ignored. In some embodiments, every intersection region ρ is assigned an N-dimensional subscript, where N is the number of light sources in the scene under consideration. The nth entry for this subscript of the intersection region ρ is defined as the value v of the uth subscript (where u=n) for each shadow region R_(u,v) of which the intersection region is a subset; every intersection region thus has a unique identifier for grouping the intersection points, as shown in FIG. 23. Because two of the subscript entries for an intersection point can be determined directly from the two shadow lines, the resulting intersection point thereof is in the two shadow regions in which the shadow lines are located. For the rest of the entries, the locations of the projections of the intersection points may be recorded during the determination of true and false intersection points. Complete knowledge of the particular intersection regions for each intersection point may thus be determined.

Once the distinct intersection regions have been determined, the smallest subset of intersection regions that can generate all of the final shadows may then be found. FIG. 23 depicts intersection regions ρ_(1,1,1), ρ_(2,2,2), ρ_(3,3,3) resulting from casting light from three light sources onto three objects 2338A, 2338B, and 2338C. Because the greatest number of shadows cast by any particular light source in this case is three and the number of intersection regions in the minimal solution is equal to the largest number of shadows generated by any single light source, every group that includes three intersection regions in the scene may be tested. If a group generates a complete set of shadows captured by the camera, this group is the minimum solution. The number of trios to test is equal to the binomial coefficient

${C_{u}^{j} = {\begin{pmatrix} j \\ u \end{pmatrix} = \frac{j!}{{u!}{\left( {j - u} \right)!}}}},$

where j is the total number of intersection regions. For example, there are C₃ ¹³=286 combinations in FIG. 23. The likelihood that a trio having larger intersection regions can generate all of the captured shadows is higher than for a trio having smaller intersection regions; additionally, larger intersection regions usually have a greater number of intersection points. In some embodiments, the number of trios tested is reduced by setting a criterion value U equal to the greatest number of intersection points in any intersection region. For example, only regions or combinations of regions having a number of intersection points exceeding the criteria number U are checked. If there are no solutions, U may be reset to U−1 and the process may be repeated. For example, by setting U=6, there are only five regions, ρ_(1,1,1), ρ_(2,2,2), ρ_(3,3,3), ρ_(1,2,3), ρ_(3,2,1), having six intersection points need to be checked. The region subscripts may be presented as a single number vector, e.g., ρ_(1,1,1)=[1 1 1]; and the combination of ρ_(3,2,1), ρ_(1,1,1,), and ρ_(2,2,2) may be written as a matrix, e.g.,

$\begin{bmatrix} 3 & 2 & 1 \\ 1 & 1 & 1 \\ 2 & 2 & 2 \end{bmatrix}.$

There are nine additional combinations exist in FIG. 23:

${{{\begin{bmatrix} 3 & 2 & 1 \\ 1 & 1 & 1 \\ 3 & 3 & 3 \end{bmatrix},\begin{bmatrix} 3 & 2 & 1 \\ 1 & 1 & 1 \\ 1 & 2 & 3 \end{bmatrix},\begin{bmatrix} 3 & 2 & 1 \\ 2 & 2 & 2 \\ 3 & 3 & 3 \end{bmatrix},\begin{bmatrix} 3 & 2 & 1 \\ 2 & 2 & 2 \\ 1 & 2 & 3 \end{bmatrix},}\quad}\begin{bmatrix} 3 & 2 & 1 \\ 3 & 3 & 3 \\ 1 & 2 & 3 \end{bmatrix}},\begin{bmatrix} 1 & 1 & 1 \\ 2 & 2 & 2 \\ 3 & 3 & 3 \end{bmatrix},\begin{bmatrix} 1 & 1 & 1 \\ 2 & 2 & 2 \\ 1 & 2 & 3 \end{bmatrix},\begin{bmatrix} 1 & 1 & 1 \\ 3 & 3 & 3 \\ 1 & 2 & 3 \end{bmatrix},{\begin{bmatrix} 2 & 2 & 2 \\ 3 & 3 & 3 \\ 1 & 2 & 3 \end{bmatrix}.}$

Because the minimal solution alone can generate all of the shadows in the scene, each column of the minimal solution matrix has the numbers 1, 2, 3 (in no particular order). Accordingly, the 6th combination above having ρ_(1,1,1), ρ_(2,2,2), and ρ_(3,3,3) is the minimal solution. This approach finds the minimal solution by determining whether there is at least one intersection region in every shadow region. This approach, however, may be time-consuming upon reducing U to 3, as the regions that have three intersection point require a more complicated check. In some embodiments, the three-point regions are neglected since they are almost never a part of a minimal solution.

In some embodiments, the 3D scenes are decomposed into a number of 2D scenes that can be quickly solved by the approaches as described above to determine the 3D shape of the objects. Because many of these 2D scenes share the same properties (e.g., the shape or location of the intersection regions), the solution of one 2D slice may be used to determine the solution of the next 2D slice; this may improve the computational efficiency.

The light sources may be positioned to lie in a plane. In one embodiment, a number of “bar” light sources are combined with “point” light sources to accomplish more complex lighting arrangements. In another embodiment, multiple light arrays lying in a plane are combined with multiple outlier-resistant least squares fits to effectively reduce the computational complexity by incorporating previously known geometric parameters of the target object.

Referring to FIG. 24, in some embodiments, a shadow 2412 is cast on a translucent or imaginary surface 2440 such that the shadow 2412 can be viewed and captured by a camera 2438. The camera 2438 may take pictures with a number of light sensors (not shown in FIG. 24) arranged in a rectangular grid. In the camera 2438, there may be three such grids interlaced at small distances that essentially lie directly on top of each other. Each grid has a different color filter on all of its light sensors (e.g., red, green, or blue). Together, these sensors output three images, each comprising A×B light brightness values in the form of a matrix of pixels. The three color images together form an A×B×3 RGB image matrix. The image matrices may have their own coordinate system, which is defined by the set of matrix cell subscripts for a given pixel. For example, indices (x,y,z)=(0,0,0) may be defined and start in an upper left corner 2439 of the image. In one embodiment, the matrix of z=1 represents the red color image and z=2 and z=3 are the green and blue images, respectively. In one implementation, an “image row” is defined as all pixel values for a given constant coordinate value of y and an “image column” is defined as all pixel values for a given constant coordinate value of x.

Referring to FIG. 25A, a color image 2550 is split into images 2552, 2554, 2556 of three primary colors (i.e., red, green, and blue, respectively) by decomposing an A×B×3 full color matrix in a memory into 3 different A×B matrices, one for each z value between 1 and 3. Pixels in each image 2552, 2554, 2556 are then compared to a brightness threshold value to determine which pixels represent shadow and which represent background to thereby generate three shadow images 2558, 2560, 2562, respectively. The brightness threshold value may be determined by a number of statistical techniques. For example, in some embodiments, a mean pixel brightness is determined for each image and the threshold is set by subtracting three times the standard deviation of the brightness of the same pixels in the same image. Edges of the shadow images 2558, 2560, 2562 may then be determined to generate shadow point images 2564, 2566, 2568, respectively, using a conventional edge-determining technique. For example, the edge of each shadow image may be determined by subtracting the shadow image itself from an offset image created by offsetting a single pixel on the left (or right, top and/or bottom) side thereof. The 2D approaches described above may be applied to each of the shadow point images 2564, 2566, 2568 to determine the locations and colors of the objects. In some embodiments, shadow points in images 2564, 2566, 2568 are combined into a single A×B×3 color matrix or image 2570. Application of the 2D approaches described above to the combined shadow point image 2570 can then reconstruct an image of the object 2572 (e.g., a hand, as shown in FIG. 25B). Reconstructing an object (e.g., a hand) from shadows using various embodiments in the present invention may then be as simple as reconstructing a number of 2D ellipses. For example, fingers may be approximated by circles in 2D slices, and a palm may be approximated as an ellipse. This reconstruction is thereby converted into a practical number of simpler, more efficient reconstructions; the reconstructed 2D slices are then reassembled into the final 3D solution. These efficient reconstructions may be computed using a single processor or multiple processors operating in parallel to reduce the processing time.

In various embodiments, referring again to FIG. 24, the image coordinate system (i.e., the “imaging grid” 2442) is imposed on the surface 2440 to form a standard Cartesian coordinate system thereon such that the shadow 2412 can be easily defined. For example, each pixel (or light measurement value) in an image may be defined based on the coordinate integers x and y. In some embodiments, the camera 2438 is perpendicular to the surface 2440 on which shadows 2412 are cast and a point on a surface in the image grid is defined based on its coordinate inside an image taken by the camera 2438. In one embodiment, all light sources lie along a line or lines on a plane perpendicular to one of the axes to reduce the computational complexity. In various embodiments, the z axis of the coordinate system uses the same distance units and is perpendicular to the x and y axes of image grid 2442 to capture the 3D images of the shadows. For example, the light sources may be placed parallel to the x or y axis and perpendicular to the z-axis; a 3D captured shadow structure in the image coordinate system may be split into multiple 2D image slices, where each slice is a plane defined by a given row on the imaging grid and the line of light sources. The 2D slices may or may not share similar shapes. For example, the 2D intersection region of a 3D intersection region for a spherical object is very similar, i.e., a circle; whereas the 2D intersection region of a 3D intersection region for a cone shape varies across the positions of the 2D slices.

As described above, the shape of multiple objects may be discerned by determining a minimal solution of each 2D slice obtained from the 3D shadow. Since two slices next to each other are typically very similar, multiple slices often have the same minimal solution. In various embodiments, when two nearby slices have the same number of intersection regions, different combinations of the intersection regions are bypassed between the slices and the combination that works for a previous slice is reused on the next slice. If the old combination works for the new slice, this solution becomes a new minimal solution for the new slice and any further combinatorial checks are not performed. The reuse of old combinations thus greatly reduces computational time and complexity for complicated scenes. Although various embodiments described above are related to determining the shapes and positions of objects in 3D space using cross-sections obtained from the shadows cast by the objects, one of ordinary skill in the art will understand that cross-sections obtained utilizing different approaches, e.g., reflections from the objects, are within the scope of the current invention.

In still other embodiments, a single camera can be used to capture an image of both the object and one or more shadows cast by the object from one or more light sources at known positions. Such a system is illustrated in FIGS. 26A and 26B. FIG. 26A illustrates a system 2600 for capturing a single image of an object 2602 and its shadow 2604 on a surface 2606 according to an embodiment of the present invention. System 2600 includes a camera 2608 and a light source 2612 at a known position relative to camera 2608. Camera 2608 is positioned such that object of interest 2602 and surface 2606 are both within its field of view. Light source 2612 is positioned so that an object 2602 in the field of view of camera 2608 will cast a shadow onto surface 2606. FIG. 26B illustrates an image 2620 captured by camera 2608. Image 2620 includes an image 2622 of object 2602 and an image 2624 of shadow 2604. In some embodiments, in addition to creating shadow 2604, light source 2612 brightly illuminates object 2602. Thus, image 2620 will include brighter-than-average pixels 2622, which can be associated with illuminated object 2602, and darker-than-average pixels 2624, which can be associated with shadow 2604.

In some embodiments, part of the shadow edge may be occluded by the object. Where 30 the object can be reconstructed with fewer than four tangents (e.g., using circular cross-sections), such occlusion is not a problem. In some embodiments, occlusion can be minimized or eliminated by placing the light source so that the shadow is projected in a different direction and using a camera with a wide field of view to capture both the object and the unoccluded shadow. For example, in FIG. 26A, the light source could be placed at position 2612′.

In other embodiments, multiple light sources can be used to provide additional visible edge points that can be used to define tangents. For example, FIG. 26C illustrates a system 2630 with a camera 2632 and two light sources 2634, 2636, one on either side of camera 2632. Light source 2634 casts a shadow 2638, and light source 2636 casts a shadow 2640. In an image captured by camera 2632, object 2602 may partially occlude each of shadows 2638 and 2640. However, edge 2642 of shadow 2638 and edge 2644 of shadow 2640 can both be detected, as can the edges of object 2602. These points provide four tangents to the object, two from the vantage point of camera 2632 and one each from the vantage point of light sources 2634 and 2636.

As yet another example, multiple images of an object from different vantage points can be generated within an optical system, e.g., using beamsplitters and mirrors. FIG. 27 illustrates an image-capture setup 2700 for a motion capture system according to another embodiment of the present invention. A fully reflective front-surface mirror 2702 is provided as a “ground plane.” A beamsplitter 2704 (e.g., a 50/50 or 70/30 beamsplitter) is placed in front of mirror 2702 at about a 20-degree angle to the ground plane. A camera 2706 is oriented toward beamsplitter 2704. Due to the multiple reflections from different light paths, the image captured by the camera can include ghost silhouettes of the object from multiple perspectives. This is illustrated using representative rays. Rays 2706 a, 2706 b indicate the field of view of a first virtual camera 2708; rays 2710 a, 2710 b indicate a second virtual camera 2712; and rays 2714 a, 2714 b indicate a third virtual camera 2716. Each virtual camera 2708, 2712, 2716 defines a vantage point for the purpose of projecting tangent lines to an object 2718.

Another embodiment uses a screen with pinholes arranged in front of a single camera. FIG. 28 illustrates an image capture setup 2800 using pinholes according to an embodiment of the present invention. A camera sensor 2802 is oriented toward an opaque screen 2804 in which are formed two pinholes 2806, 2808. An object of interest 2810 is located in the space on the opposite side of screen 2804 from camera sensor 2802. Pinholes 2806, 2808 can act as lenses, providing two effective vantage points for images of object 2810. A single camera sensor 2802 can capture images from both vantage points.

More generally, any number of images of the object and/or shadows cast by the object can be used to provide image data for analysis using techniques described herein, as long as different images or shadows can be ascribed to different (known) vantage points. Those skilled in the art will appreciate that any combination of cameras, beamsplitters, pinholes, and other optical devices can be used to capture images of an object and/or shadows cast by the object due to a light source at a known position.

Further, while the embodiments described above use light as the medium to detect edges of an object, other media can be used. For example, many objects cast a “sonic” shadow, either blocking or altering sound waves that impinge upon them. Such sonic shadows can also be used to locate edges of an object. (The sound waves need not be audible to humans; for example, ultrasound can be used.) The term “shadow” is herein used broadly to connote light or sonic shadows or other occlusion of a disturbance by an object, and the term “light” means electromagnetic radiation of any suitable wavelength(s) or wavelength range.

As described above, the general equation of an ellipse includes five parameters; where only four tangents are available, the ellipse is underdetermined, and the analysis proceeds by assuming a value for one of the five parameters. Which parameter is assumed is a matter of design choice, and the optimum choice may depend on the type of object being modeled. It has been found that in the case where the object is a human hand, assuming a value for the semimajor axis is effective. For other types of objects, other parameters may be preferred.

Further, while some embodiments described herein use ellipses to model the cross-sections, other shapes can be substituted. For instance, like an ellipse, a rectangle can be characterized by five parameters, and the techniques described above can be applied to generate rectangular cross-sections in some or all slices. More generally, any simple closed curve can be fit to a set of tangents in a slice. (The term “simple closed curve” is used in its mathematical sense throughout this disclosure and refers generally to a closed curve that does not intersect itself with no limitations implied as to other properties of the shape, such as the number of straight edge sections and/or vertices, which can be zero or more as desired.) The number of free parameters can be limited based on the number of available tangents. In another embodiment, a closed intersection region (a region fully bounded by tangent lines) can be used as the cross-section, without fitting a curve to the region. While this may be less accurate than ellipses or other curves, e.g., it can be useful in situations where high accuracy is not desired. For example, in the case of capturing motion of a hand, if the motion of the fingertips is of primary interest, cross-sections corresponding to the palm of the hand can be modeled as the intersection regions while fingers are modeled by fitting ellipses to the intersection regions.

In some embodiments, cross-slice correlations can be used to model all or part of the object using 3D surfaces, such as ellipsoids or other quadratic surfaces. For example, elliptical (or other) cross-sections from several adjacent slices can be used to define an ellipsoidal object that best fits the ellipses. Alternatively, ellipsoids or other surfaces can be determined directly from tangent lines in multiple slices from the same set of images. The general equation of an ellipsoid includes nine free parameters; using nine (or more) tangents from two or three (or more) slices, an ellipsoid can be fit to the tangents. Ellipsoids can be useful, e.g., for refining a model of fingertip (or thumb) position; the ellipsoid can roughly correspond to the last segment at the tip of a finger (or thumb). In other embodiments, each segment of a finger can be modeled as an ellipsoid. Other quadratic surfaces, such as hyperboloids or cylinders, can also be used to model an object or a portion thereof.

In some embodiments, an object can be reconstructed without tangent lines. For example, given a sufficiently sensitive time-of-flight camera, it would be possible to directly detect the difference in distances between various points on the near surface of a finger (or other curved object). In this case, a number of points on the surface (not limited to edge points) can be determined directly from the time-of-flight data, and an ellipse (or other shape) can be fit to the points within a particular image slice. Time-of-flight data can also be combined with tangent-line information to provide a more detailed model of an object's shape.

Any type of object can be the subject of motion capture using these techniques, and various aspects of the implementation can be optimized for a particular object. For example, the type and positions of cameras and/or light sources can be optimized based on the size of the object whose motion is to be captured and/or the space in which motion is to be captured. As described above, in some embodiments, an object type can be determined based on the 3D model, and the determined object type can be used to add type-based constraints in subsequent phases of the analysis. In other embodiments, the motion capture algorithm can be optimized for a particular type of object, and assumptions or constraints pertaining to that object type (e.g., constraints on the number and relative position of fingers and palm of a hand) can be built into the analysis algorithm. This can improve the quality of the reconstruction for objects of that type, although it may degrade performance if an unexpected object type is presented. Depending on implementation, this may be an acceptable design choice. For example, in a system for controlling a computer or other device based on recognition of hand gestures, there may not be value in accurately reconstructing the motion of any other type of object (e.g., if a cat walks through the field of view, it may be sufficient to determine that the moving object is not a hand).

Analysis techniques in accordance with embodiments of the present invention can be implemented as algorithms in any suitable computer language and executed on programmable processors. Alternatively, some or all of the algorithms can be implemented in fixed-function logic circuits, and such circuits can be designed and fabricated using conventional or other tools.

Computer programs incorporating various features of the present invention may be encoded on various computer readable storage media; suitable media include magnetic disk or tape, optical storage media such as compact disk (CD) or DVD (digital versatile disk), flash memory, and any other non-transitory medium capable of holding data in a computer-readable form. Computer readable storage media encoded with the program code may be packaged with a compatible device or provided separately from other devices. In addition program code may be encoded and transmitted via wired optical, and/or wireless networks conforming to a variety of protocols, including the Internet, thereby allowing distribution, e.g., via Internet download.

The motion capture methods and systems described herein can be used in a variety of applications. For example, the motion of a hand can be captured and used to control a computer system or video game console or other equipment based on recognizing gestures made by the hand. Full-body motion can be captured and used for similar purposes. In such embodiments, the analysis and reconstruction advantageously occurs in approximately real-time (e.g., times comparable to human reaction times), so that the user experiences a natural interaction with the equipment. In other applications, motion capture can be used for digital rendering that is not done in real time, e.g., for computer-animated movies or the like; in such cases, the analysis can take as long as desired. In intermediate cases, detected object shapes and motions can be mapped to a physical model whose complexity is suited to the application—i.e., which provides a desired processing speed given available computational resources. For example, the model may represent generic hands at a computationally tractable level of detail, or may incorporate the user's own hands by initial image capture thereof followed by texture mapping onto a generic hand model. The physical model is manipulated (“morphed”) according to the detected object orientation and motion.

Thus, although the invention has been described with respect to specific embodiments, it will be appreciated that the invention is intended to cover all modifications and equivalents within the scope of the following claims.

In various embodiments, the system and method for capturing 3D motion of an object as described herein may be integrated with other applications, such as a head-mounted device or a mobile device. Referring to FIG. 29A, a head-mounted device 2902 typically includes an optical assembly that displays a surrounding environment or a virtual environment to the user; incorporation of the motion-capture system 2904 in the head-mounted device 2902 allows the user to interactively control the displayed environment. For example, the virtual environment may include virtual objects that can be manipulated by the user's hand gestures, which are tracked by the motion-capture system 2904. In one embodiment, the motion-capture system 2904 integrated with the head-mounted device 2902 detects a position and shape of user's hand and projects it on the display of the head-mounted device 2902 such that the user can see her gestures and interactively control the objects in the virtual environment. This may be applied in, for example, gaming or internet browsing.

Referring to FIG. 29B, in some embodiments, the motion-capture system 2904 is employed in a mobile device 2906 that communicates with other devices 2910. For example, a television (TV) 2910 may include an input that connects to a receiver (e.g., a wireless receiver, a cable network or an antenna) to enable communication with the mobile device 2906. The mobile device 2906 first uses the embedded motion-capture system 2904 to detect movement of the user's hands, and to remotely control the TV 2910 based on the detected hand movement. For example, the user may perform a sliding hand gesture, in response to which the mobile device 2906 transmits a signal to the TV 2910; the signal may be a raw trajectory that circuitry associated with the TV interprets, or the mobile device 2906 may include programming that interprets the gesture and sends a signal (e.g., a code corresponding to “sliding hand”) to the TV 2910. Either way, the TV 2910 responds by activating and displaying a control panel on the TV screen, and the user makes selections thereon using further gestures. The user may, for example, move his hand in an “up” or “down” direction, which the motion-capture system 2904 embedded in the mobile device 2906 converts to a signal that is transmitted to the TV 2910, and in response, the user's selection of a channel of interest from the control panel is accepted. Additionally, the TV 2910 may connect to a source of video games (e.g., video game console or web-based video game). The mobile device 2906 may capture the user's hand motion and transmit it to the TV for display thereon such that the user can remotely interact with the virtual objects in the video game.

Referring to FIG. 29C, in various embodiments, the motion-capture system 2904 is integrated with a security system 2912. The security system 2912 may utilize the detected hand shape as well as hand jitter (detected as motion) in order to authenticate the user 2914. For example, an authentication server 2916 may maintain a database of users and corresponding hand shapes and jitter patterns. When a user 2914 seeks access to a secure resource 2912, the motion-capture system 2904 integrated with the resource 2912 (e.g., a computer) detects the user's hand shape and jitter pattern and then identifies the user 2914 by transmitting this data to the authentication server 2916, which compares the detected data with the database record corresponding to the access-seeking user 2914. If the user 2914 is authorized to access the secure resource 2912, the server 2916 transmits an acknowledgment to the resource 2912, which thereupon grants access. It should be stressed that the user 2914 may be authenticated to the secure system 2912 based on the shape of any part of a human body that may be detected and recognized using the motion-capture system 2904.

The terms and expressions employed herein are used as terms and expressions of description and not of limitation, and there is no intention, in the use of such terms and expressions, of excluding any equivalents of the features shown and described or portions thereof. In addition, having described certain embodiments of the invention, it will be apparent to those of ordinary skill in the art that other embodiments incorporating the concepts disclosed herein may be used without departing from the spirit and scope of the invention. Accordingly, the described embodiments are to be considered in all respects as only illustrative and not restrictive. 

What is claimed is:
 1. A system of identifying a position and shape of at least a portion of an object or object portion in three-dimensional (3D) space, the system comprising: one or more processors coupled to memory, the memory loaded with computer instructions that, when executed on the processors, implement actions including: capturing, with a plurality of cameras, each camera having a particular vantage point, two or more images generated by casting an output from at least one source onto a portion of an object; analyzing the two or more images captured by the cameras from the particular vantage points to computationally represent the object portion, as captured, as one or more mathematically represented three-dimensional (3D) surfaces, each 3D surface corresponding to a cross-section of the object portion, based at least in part on a plurality of edge points of the object portion in the image, tangent lines extending from the cameras to at least two of the plurality of edge points and a centerline corresponding to the tangent lines; and reconstructing the position of and a shape fitting at least a portion of the object portion in 3D space based at least in part on the plurality of edge points and the centerline.
 2. The system of claim 1, wherein at least a portion of at least one of the 3D surfaces is determined from a correlation of slices that represent all or part of an object comprising the object portion.
 3. The system of claim 2, wherein at least one of the slices is tilted with respect to one or more other of the slices.
 4. The system of claim 2, wherein the correlating comprises defining a 3D surface that best fits the slices.
 5. The system of claim 1, wherein: the analyzing comprises determining a centerline by identifying diagonal line segments that connect opposite corners of an intersection region formed from an intersection of two pairs of intersecting tangent lines selected from the tangent lines, identifying midpoints of the diagonal line segments, and identifying a line segment joining the midpoints as the centerline; and the reconstructing comprises fitting at least one of the 3D surfaces to a point at which at least one of the tangent lines is substantially tangent to the object, as represented, and positioned about the centerline.
 6. The system of claim 5, wherein the reconstructing further comprises stacking two or more of the 3D surfaces.
 7. The system of claim 1, wherein at least one of the 3D surfaces approximates a contour of the cross-section of the object portion.
 8. The system of claim 1, wherein at least one of the 3D surfaces is symmetrical in at least one plane.
 9. The system of claim 8, wherein at least one of the 3D surfaces is selected from a group consisting of ellipsoids, hyperboloids, cylinders and other quadratic surfaces.
 10. The system of claim 1, wherein the analyzing further comprises revising characteristic parameters of at least one of the 3D surfaces based upon results of such analyzing as conducted on images obtained at a different time.
 11. The system of claim 1, wherein: at least one of the 3D surfaces is defined according to characteristic parameters defining characteristics of the at least one of the 3D surfaces; and the analyzing further comprises assuming a characteristic parameter of the at least one of the 3D surfaces.
 12. The system of claim 11, wherein the assuming is conducted according to a type of object.
 13. The system of claim 1, wherein: at least one of the 3D surfaces is defined according to characteristic parameters defining characteristics of the at least one of the 3D surfaces; and the analyzing further comprises assuming a typical characteristic parameter of the at least one of the 3D surfaces.
 14. The system of claim 1, wherein the object comprises multiple members.
 15. The system of claim 14, wherein one or more of the multiple members is separately articulating.
 16. The system of claim 15, wherein spatial relationships between multiple members change as a subject comprising the multiple members moves.
 17. The system of claim 1, wherein the at least a portion of an object is selected from a group consisting essentially of fingers, finger segments, thumb segments, hands, palms, arms, legs, core of a person and trunk of a person.
 18. The system of claim 1, wherein the analyzing further comprises analyzing additional images and determining an object motion of an object.
 19. The system of claim 18, wherein object motion determines a pose.
 20. The system of claim 18, wherein the determining an object motion of an object further comprises determining movement of digits indicated by a sequence of models captured across time.
 21. The system of claim 20, wherein the object is any type of object.
 22. The system of claim 20, wherein the object is a hand and wherein motion of the hand as captured is used to control equipment.
 23. The system of claim 1, wherein the capturing comprises capturing images of a viewed portion of an object.
 24. A non-transitory computer readable medium storing a plurality of instructions for programming one or more processors to identify a position and shape of at least a portion of an object or object portion in three-dimensional (3D) space, the instructions, when executed on the processors, implementing actions including: capturing, with a plurality of cameras, each camera having a particular vantage point, two or more images generated by casting an output from at least one source onto a portion of an object; analyzing the two or more images captured by the cameras from the particular vantage points to computationally represent the object portion, as captured, as one or more mathematically represented three-dimensional (3D) surfaces, each 3D surface corresponding to a cross-section of the object portion, based at least in part on a plurality of edge points of the object portion in the image, tangent lines extending from the cameras to at least two of the plurality of edge points and a centerline corresponding to the tangent lines; and reconstructing the position of and a shape fitting at least a portion of the object portion in 3D space based at least in part on the plurality of edge points and the centerline. 